package vehicle

import (
	v1 "gitee.com/sweetsunnyflower/carpooling-server-go/app/http/controllers/api/v1"
	"gitee.com/sweetsunnyflower/carpooling-server-go/app/models/transmission_type"
	"github.com/gofiber/fiber/v2"
)

type TransmissionTypesController struct {
	v1.BaseController
}

func (controller *TransmissionTypesController) Index(c *fiber.Ctx) error {
	transmissionTypes := transmission_type.All()
	return controller.Json(c, transmissionTypes)
}
